package com.rpay.admin.controller.user;

import com.alibaba.fastjson.JSONObject;
import com.rpay.admin.util.SessionUtil;
import com.rpay.common.enums.PcsResultCode;
import com.rpay.common.util.common.CommonUtils;
import com.rpay.common.util.cyptor.Cryptor;
import com.rpay.common.vo.PcsResult;
import com.rpay.model.admin.RpayAdminUser;
import com.rpay.service.admin.impl.SystemUserServiceImpl;
import com.rpay.service.user.impl.UserTradeServiceImpl;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Title：
 * Description
 *
 * @author fxg06 on 2018/5/7
 * @version 1.0
 */
@RestController
@RequestMapping(value = "api/user")
public class UserController {
    @Resource(name = "systemUserServiceImpl")
    private SystemUserServiceImpl userMapperServiceImpl;


    @PostMapping(value = "logout")
    public PcsResult logout(HttpServletRequest request) {
        request.getSession().removeAttribute("user");
        return new PcsResult();
    }


}
